home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / tess / tess-1.0 / MouseTracker.h < prev    next >
Encoding:
Text File  |  1992-06-30  |  784 b   |  33 lines

  1. /*
  2.  *    MouseTracker -- Randy Nelson
  3.  *    An abstract class that manages a modal loop for tracking the mouse
  4.  *
  5.  *    You may freely copy, distribute and reuse the code in this example.
  6.  *    NeXT disclaims any warranty of any kind, expressed or implied, as to
  7.  *    its fitness for any particular use.
  8.  */
  9.  
  10. #import <appkit/View.h>
  11.  
  12. @interface MouseTracker:View
  13. {
  14.     float frameGray, backgroundGray;
  15. }
  16. - (float)frameGray;
  17. - setFrameGray:(float)newGray;
  18. - newFrameGray:sender;
  19.  
  20. - (float)backgroundGray;
  21. - setBackgroundGray:(float)newGray;
  22. - newBackgroundGray:sender;
  23.  
  24. - setTrackingRect:sender;
  25. - mouseEntered:(NXEvent *)e;
  26. - mouseExited:(NXEvent *)e;
  27.  
  28. - mouseDownAction:(NXPoint *)currentLocation;
  29. - mouseDraggedAction:(NXPoint *)currentLocation;
  30. - mouseUpAction:(NXPoint *)currentLocation;
  31.  
  32. @end
  33.